package org.tinygroup.trans.template;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@SuppressWarnings("serial")
@XStreamAlias("template-converts")
public class TemplateConverts implements Serializable {

	@XStreamImplicit
	private List<SceneMapping> sceneMappings;

	public List<SceneMapping> getSceneMappings() {
		if (sceneMappings.isEmpty()) {
			sceneMappings = new ArrayList<SceneMapping>();
		}
		return sceneMappings;
	}

	public void setSceneMappings(List<SceneMapping> sceneMappings) {
		this.sceneMappings = sceneMappings;
	}

}
